Search
CustomPaintEvent.createLinearGradient Method
See Also
 






Creates a linear gradient with orientation defined by an angle and a blend specified by a series of positions and color objects.

Namespace: com.mindfusion.charting.components.gauges
File: com.mindfusion.charting.components.gauges

 Syntax

Java  Copy Code

public GradientBrush createLinearGradient (
    double angle,
    float[] positions,
    Color[] colors
)

 Parameters

angle

The orientation of the gradient, expressed in degrees.

positions

The positions of the gradient stops.

colors

The colors of the gradient stops.

 Return Value

A GradientBrush with the specified characteristics.

 See Also